// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import MuseUI from 'muse-ui';
import Toast from 'muse-ui-toast';
import 'muse-ui/dist/muse-ui.css';
import api from "@/util/api.js";

Vue.config.productionTip = false

Vue.use(MuseUI);
Vue.use(Toast,{
    position: 'bottom',               // 弹出的位置
    time: 2000,                       // 显示的时长
    closeIcon: '',               // 关闭的图标
    close: true,                      // 是否显示关闭按钮
    successIcon: '',      // 成功信息图标
    infoIcon: '',                 // 信息信息图标
    warningIcon: '',     // 提醒信息图标
    errorIcon: ''              // 错误信息图标
});

Vue.prototype.$api = api;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
